Skip to content

)}

ConcurrentReplayLatestSubjectAsync(Optional) constructor

Defined in

Type: ConcurrentReplayLatestSubjectAsync Namespace: ReactiveUI.Extensions.Async.Subjects Assembly: ReactiveUI.Extensions.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

public ConcurrentReplayLatestSubjectAsync(Optional<T> startValue)

View source

Summary: Represents an asynchronous subject that replays only the latest value to new observers and supports concurrent notification of observers.

Parameters

NameTypeDescription
startValue[Optional](#An optional initial value to be emitted to observers upon subscription if no other value has been published.

Remarks

This subject notifies all observers concurrently, which can improve throughput in scenarios with multiple observers. The order in which observers receive notifications is not guaranteed. This type is thread-safe and suitable for use in asynchronous and concurrent environments.